This updates the use of bind_cairo_surface_property for the changes
from
d7cb2eeebc. Now this function returns a StImageContent and not
an Actor like the following code expects, so wrap it in a StIcon.
Also the function lost its size argument.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1718>
if (app) {
icon = app.create_icon_texture(POPUP_APPICON_SIZE);
} else {
- icon = textureCache.bind_cairo_surface_property(windows[i],
- 'icon',
- POPUP_APPICON_SIZE);
+ icon = new St.Icon({
+ gicon: textureCache.bind_cairo_surface_property(windows[i], 'icon'),
+ icon_size: POPUP_APPICON_SIZE,
+ });
}
}